<#include "user_manager_header.ftl">

<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">开放平台</h3>
	</div>
	<div class="panel-body">
		<ul class="nav nav-tabs">
			<li><a href="user_management_list">管理管理员用户</a></li>
			<li class="active"><a>添加管理员</a></li>
		</ul>
		<div>
			<p></p>
		</div>

		<div class="panel panel-default">
			<div class="panel-body">

				<form class="form-horizontal" role="form" id="form" method="post"
					action="user_chgpass_exe">

					<div class="form-group">
						<label for="usercode" class="col-sm-2 control-label">用户名</label>
						<div class="col-sm-6">
						<input type="hidden" class="form-control"
								value="${(user.userCode)?if_exists}" name="usercode"
								id="usercode"  required autofocus/>
							<input type="username" class="form-control"
								value="${(user.userName)?if_exists}" name="username"
								id="username" placeholder="用户名" required autofocus />
						</div>
					</div>

					<div class="form-group">
						<label for="username" class="col-sm-2 control-label">新密码</label>
						<div class="col-sm-6">
							<input type="newpwd" class="form-control"
								value="${(user.userPass)?if_exists}" name="newpwd"
								id="newpwd" placeholder="新密码" required />
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-default" id="button"
								${(user.userCode)?if_exists}>提交</button>
						</div>
					</div>
				</form>

			</div>
			<!--/panel-body-->

		</div>
		<div class="panel-footer"></div>
	</div>

	<blockquote>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
			Integer posuere erat a ante.</p>
		<footer>Luther</footer>
	</blockquote>

	<#include "user_manager_footer.ftl">

	<script type="text/javascript">
		$().ready(function() {
			$('.selectpicker').selectpicker();
			if (document.getElementById("readonly").value == "UPDATE") {

				document.getElementById("usercode").readOnly = true;
				document.getElementById("userUID").readOnly = true;
				document.getElementById("userpass").readOnly = true;
			}

			$("#button").click(function() {

			});

		});
	</script>